package com.bus.core.manager;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import com.bus.core.entity.BusSite;
import com.bus.core.entity.BusUser;

public interface BusSiteMng {
	public List<BusSite> getList();

	public List<BusSite> getListFromCache();

	public BusSite findByDomain(String domain);
	
	public boolean hasRepeatByProperty(String property);

	public BusSite findById(Integer id);

	public BusSite save(BusSite currSite, BusUser currUser, BusSite bean,
			Integer uploadFtpId,Integer syncPageFtpId) throws IOException;
	
	public BusSite update(BusSite site);

	public BusSite update(BusSite bean, Integer uploadFtpId,Integer syncPageFtpId,Integer ossId);

	public void updateTplSolution(Integer siteId, String solution,String mobileSol);
	
	public void updateAttr(Integer siteId,Map<String,String>attr);
	
	public void updateAttr(Integer siteId,Map<String,String>...attrs);

	public BusSite deleteById(Integer id);

	public BusSite[] deleteByIds(Integer[] ids);
}